package com.xt.LibaryDeskManager.dto;

/**
 * @author 童归权
 * @version 1.0 2021/2/12
 */
public class MessageDto {
    private Integer mid;
    private String mtitle;
    private Integer level;
    private String levelName;
    private String userNo;
    private String mess;
    private String time;

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMtitle() {
        return mtitle;
    }

    public void setMtitle(String mtitle) {
        this.mtitle = mtitle;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
        switch (level){
            case 1:
                levelName="学生";
                break;
            case 2:
                levelName="教师";
                break;
            case 3:
                levelName="管理员";
                break;
        }
    }

    public String getLevelName() {
        return levelName;
    }

    public void setLevelName(String levelName) {
        this.levelName = levelName;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public MessageDto() {
    }

    public MessageDto(Integer mid, String mtitle, Integer level, String levelName, String userNo, String mess, String time) {
        this.mid = mid;
        this.mtitle = mtitle;
        this.level = level;
        this.levelName = levelName;
        this.userNo = userNo;
        this.mess = mess;
        this.time = time;
    }
}
